package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_adminlog`", catalog="id")
public class SysAdminlog extends BaseEntity<SysAdminlog> {

	private Long id; // 主键ID
	private String ip; // 操作主机IP
	private String name; // 操作名称
	private Long adminId; // 操作者adminid
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysAdminlog setId(Long id) {
		this.id = id;
		return this;
	}
	public String getIp() {
		return ip;
	}
	public SysAdminlog setIp(String ip) {
		this.ip = ip;
		return this;
	}
	public String getName() {
		return name;
	}
	public SysAdminlog setName(String name) {
		this.name = name;
		return this;
	}
	public Long getAdminId() {
		return adminId;
	}
	public SysAdminlog setAdminId(Long adminId) {
		this.adminId = adminId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysAdminlog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysAdminlog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysAdminlog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysAdminlog sysAdminlog(
		String ip,
		String name,
		Long adminId,
		Integer status
			) {
		SysAdminlog entity = new SysAdminlog();
		entity.setIp(ip);
		entity.setName(name);
		entity.setAdminId(adminId);
		entity.setStatus(status);
		return entity;
	}
}